package com.csd.mapper;

import com.csd.po.PageOrder;
import com.csd.po.SysOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单访问数据库接口层
 * @program: CeSuDi_SSM
 * @author: qinjianbao
 * @create: 2020-12-23 20:29
 * @Version: 1.0
 */
public interface SysOrderMapper {


    /**
     * 添加订单
     * @param uid
     * @param cid
     * @param getid
     * @param backid
     * @param oprice
     */

    void addOrder(@Param("uid") Integer uid, @Param("cid") Integer cid,
                  @Param("getid") Integer getid, @Param("backid") Integer backid,
                  @Param("oprice") Double oprice,@Param("status") String status);

    List<PageOrder> selectAll(Integer uid);

    void delOrderById(Integer id);
}
